package cn.easy.mortgage.domain;

import cn.easy.base.domain.core.AtEntity;
import cn.easy.mortgage.utils.ProjectUtil;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

@Entity
@Table(name = "mtg_estate_eval_info")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" })
public class EstateEvalInfo extends AtEntity {
	/**产权地址*/
	private String houseAddress;
	/**楼幢编码*/
	private String buildingCode;
	/**物业类型*/
	private String propertyType;
	/**单元号*/
	private String cellNo;
	/**室号*/
	private String roomNo;
	/**楼层起始*/
	private String begin;
	/**楼层结束*/
	private String end;
	/**建筑面积*/
	private String roomSize;
	/**住房总价*/
	private BigDecimal houseTotalPrice;
	/**住房单价*/
	private BigDecimal houseUnitPrice;
	/**使用权类型*/
	private String landUseRights;
	/**建筑结构*/
	private String buildStruct;
	/**建成年份*/
	private String buildYear;

	private String area;

	public String getHouseAddress() { return houseAddress; }
	public void setHouseAddress(String houseAddress) { this.houseAddress = houseAddress; }

	@Transient
	public String getEncryptHouseAddress() {
		return ProjectUtil.getEncrypt(getHouseAddress());
	}

	public String getBuildingCode() { return buildingCode; }
	public void setBuildingCode(String buildingCode) { this.buildingCode = buildingCode; }
	public String getPropertyType() { return propertyType; }
	public void setPropertyType(String propertyType) { this.propertyType = propertyType; }
	public String getCellNo() { return cellNo; }
	public void setCellNo(String cellNo) { this.cellNo = cellNo; }
	public String getRoomNo() { return roomNo; }
	public void setRoomNo(String roomNo) { this.roomNo = roomNo; }
	public String getBegin() { return begin; }
	public void setBegin(String begin) { this.begin = begin; }
	public String getEnd() { return end; }
	public void setEnd(String end) { this.end = end; }
	public String getRoomSize() { return roomSize; }
	public void setRoomSize(String roomSize) { this.roomSize = roomSize; }
	public BigDecimal getHouseTotalPrice() { return houseTotalPrice; }
	public void setHouseTotalPrice(BigDecimal houseTotalPrice) { this.houseTotalPrice = houseTotalPrice; }

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public BigDecimal getHouseUnitPrice() {
		return houseUnitPrice;
	}

	public void setHouseUnitPrice(BigDecimal houseUnitPrice) {
		this.houseUnitPrice = houseUnitPrice;
	}

	public String getLandUseRights() {
		return landUseRights;
	}

	public void setLandUseRights(String landUseRights) {
		this.landUseRights = landUseRights;
	}

	public String getBuildStruct() {
		return buildStruct;
	}

	public void setBuildStruct(String buildStruct) {
		this.buildStruct = buildStruct;
	}

	public String getBuildYear() {
		return buildYear;
	}

	public void setBuildYear(String buildYear) {
		this.buildYear = buildYear;
	}
}
